import './App.css';
import { message } from './util';

function App() {
  const showNormalMessage = () => {
    message('提醒','Javascript是最好的语言');
  };
  const showAdvancedMessage = () => {
    message('反对', (
      <div>
        <span className="light-item">NodeJS</span>才是最好的
      </div>
    ), 2000);
  };
  return (
    <div className="App">
      <div className="button" onClick={showNormalMessage}>正方意见！</div>  
      <div className="button" onClick={showAdvancedMessage}>反方辩解！</div>  
    </div>
  );
}

export default App;
